import java.math.BigDecimal;

public class Main {
    public static void main(String[] args) {
        ShoppingCart yourcar = new ShoppingCart();
        yourcar.add(new Good(BigDecimal.valueOf(1),"apple"));
        yourcar.add(new Good(BigDecimal.valueOf(2),"pine"));
        yourcar.add(new Good(BigDecimal.valueOf(3),"bread"));
        yourcar.add(new Good(BigDecimal.valueOf(4),"cup"));
        yourcar.add(new Good(BigDecimal.valueOf(5),"hat"));
        yourcar.add(new Good(BigDecimal.valueOf(6),"computer"));
        yourcar.add(new Good(BigDecimal.valueOf(7),"car"));
        yourcar.add(new Good(BigDecimal.valueOf(8),"house"));
        System.out.println(yourcar);
        System.out.println(yourcar.sum());
        yourcar.deleteGood(1);
        System.out.println(yourcar);
    }
}
